package com.ruoyi.jxgl.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jxgl.mapper.JxglScMapper;
import com.ruoyi.jxgl.domain.JxglScView;
import com.ruoyi.jxgl.service.IJxglScService;

/**
 * 班级成员管理Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-29
 */
@Service
public class JxglScServiceImpl implements IJxglScService
{
    @Autowired
    private JxglScMapper jxglScMapper;

    public List<JxglScView> selectJxglScList(Map<String,String>map)
    {
        return  jxglScMapper.selectJxglScViewList(map);
    }

    /**
     * 修改选课
     *
     * @param map 选课
     * @return 结果
     */
    @Override
    public int updateJxglSc(Map<String,String> map)
    {
        return jxglScMapper.updateJxglSc(map);
    }

    /**
     * 新增选课
     *
     * @param jxglSc 选课
     * @return 结果
     */
    @Override
    public int insertJxglSc(JxglScView jxglSc) {
        return jxglScMapper.insertJxglSc(jxglSc);
    }

    /**
     * 删除选课
     *
     * @param map 选课参数
     * @return 结果
     */
    @Override
    public int deleteJxglSc(Map<String, String> map) {
        return jxglScMapper.deleteJxglSc(map);
    }

    /**
     * 查询我的课程成绩
     *
     * @param map 学号
     * @return 我的课程成绩集合
     */
    @Override
    public List<Map<String, String>> selectJxglMyScList(Map<String,String>map) {
        return jxglScMapper.selectJxglMyScList(map);
    }

}
